﻿
<RadzenTemplateForm TItem="ImportFormInfo" Data="_importFormInfo">
    <RadzenRow>
        <RadzenColumn Size="12">
            <RadzenFormField Text="上传类型" Style="width:100%;">
                <RadzenDropDown Data="@(Enum.GetValues(typeof(ImportTypeEnum)).Cast<Enum>())" TValue="int" @bind-Value="_importFormInfo.ImportType">
                </RadzenDropDown>
            </RadzenFormField>
        </RadzenColumn>
        <RadzenColumn Size="12">
            <RadzenFileInput @bind-Value="_importFormInfo.UploadFile" TValue="string">

            </RadzenFileInput>
        </RadzenColumn>
        <RadzenColumn Size="12">
            仅允许导入xls、xlsx格式文件。
            <RadzenLink Path="javascript:void(0);" @onclick="ExportTemplateHandler">下载模板</RadzenLink>
        </RadzenColumn>
    </RadzenRow>
</RadzenTemplateForm>

@code {

    private ImportFormInfo _importFormInfo = new();
    private FileModelFluentValidator _validationRules = new();

    [Parameter]
    public EventCallback ExportTemplateHandler { get; set; }

}